package com.example.yuejian.yuejian.service;

import com.example.yuejian.yuejian.bean.ActivityInfo;
import com.example.yuejian.yuejian.bean.ActivityList;
import com.example.yuejian.yuejian.bean.SignupActivity;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/4.
 */

public interface ActivityService {
    //活动列表
    @GET("activitylist")
    Call<List<ActivityList>>ActivityList();
    //活动详情
    @GET("activityinfo")
    Call<ActivityInfo>Activityinfo(
            @Query("aid")int activityid);
    //活动报名
    @GET("activity_signup")
    Call<SignupActivity>signupActive(
            @Query("aid")String activityid,
           @ Query("uid")String userid,
           @Query("num")int num,
          @Query("username")String username,
           @Query("idCard")String  idcard,
           @Query("money")double money,
          @ Query("pay_type")String  pay_type);
}
